\hypertarget{sonar_8c}{
\section{atmega1281/low/sonar/sonar.c File Reference}
\label{sonar_8c}\index{atmega1281/low/sonar/sonar.c@{atmega1281/low/sonar/sonar.c}}
}
{\ttfamily \#include $<$avr/io.h$>$}\par
{\ttfamily \#include $<$avr/interrupt.h$>$}\par
{\ttfamily \#include \char`\"{}sonar.h\char`\"{}}\par
{\ttfamily \#include \char`\"{}uart.h\char`\"{}}\par
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{sonar_8c_acdf18a4ed237ee7c0746c7dcd4ca947d}{BAUD\_\-SONAR}~9600
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__nxbot__sonar_ga97fb7cc76026e9c3b77485e8184927fe}{sonar\_\-init} ()
\begin{DoxyCompactList}\small\item\em Hardware initialization of the sonar module. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__sonar_ga9d697cf1169998e8a706c7edd4e7b42d}{sonar\_\-cleanBuffer} ()
\begin{DoxyCompactList}\small\item\em Cleans uart stack. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__sonar_ga82aee1a46c4302c98f338cce0ab6dab4}{sonar\_\-write} (unsigned char sonarNum)
\begin{DoxyCompactList}\small\item\em Sends command to desired SRF02 module for distance measuring. \item\end{DoxyCompactList}\item 
unsigned char \hyperlink{group__nxbot__sonar_gaad6f525a621b2b79e529ab1da57bb692}{sonar\_\-read} (unsigned char sonarNum, unsigned int $\ast$val, char newState)
\begin{DoxyCompactList}\small\item\em Sends command to desired SRF02 module for distance reading. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Define Documentation}
\hypertarget{sonar_8c_acdf18a4ed237ee7c0746c7dcd4ca947d}{
\index{sonar.c@{sonar.c}!BAUD\_\-SONAR@{BAUD\_\-SONAR}}
\index{BAUD\_\-SONAR@{BAUD\_\-SONAR}!sonar.c@{sonar.c}}
\subsubsection[{BAUD\_\-SONAR}]{\setlength{\rightskip}{0pt plus 5cm}\#define BAUD\_\-SONAR~9600}}
\label{sonar_8c_acdf18a4ed237ee7c0746c7dcd4ca947d}
